package com.lipeng.service;



import com.lipeng.bean.Comment;
import com.lipeng.bean.Photo;

import java.util.List;

/**
 * Created by dllo on 18/3/8.
 */
public interface PhotoService {
    List<Photo> findAllPhoto();

    List<Photo> selectPhotoByName(String name);

    int deletePhotoById(Integer pid);

    Photo selectPhotoById(Integer pid);

    List<Comment> selectCommentByPid(Integer pid);

    int addPhoto(Photo photo);

    List<Photo> selectPhotoByUid(Integer uid);
}
